﻿using System;
using System.Collections.Generic;
using System.ServiceModel;
using WcfService1.DTO;

namespace WcfService1
{
    // NOTE: You can use the "Rename" command on the "Refactor" SalesReturn to change the interface name "ISalesReturnServices" in both code and config file together.
    [ServiceContract]
    public interface ISalesReturnServices
    {
        [OperationContract]
        List<SalesReturnDTO> GetList(int page, out long recordCount, string sortProperty = null, string sortType = "ASC");

        [OperationContract]
        bool Save(SalesReturnDTO SalesReturn);

        [OperationContract]
        bool Delete(SalesReturnDTO SalesReturn);

        [OperationContract]
        List<SalesReturnDTO> GetListByCriteria(Dictionary<String, Object> criteria, string expression, int page,
                                               out long recordCount);

        [OperationContract]
        List<SalesReturnDTO> GetAllSalesReturn();

        [OperationContract]
        SalesReturnDTO GetSalesReturn(string kodeSalesReturn);

        [OperationContract]
        List<SalesReturnDTO> GetSalesReturnList(string kodeSalesReturn);

        [OperationContract]
        string GetLastSRNo(CostCenterDTO costCenter);

        [OperationContract]
        bool DeleteDetail(SalesReturnDetailDTO salesReturnDetailDTO);

        [OperationContract]
        bool SendEmail(SalesReturnDTO obj, String DestinationFolder);

        [OperationContract]
        void UpdateStatus(SalesReturnDTO salesReturnDto, Status status);

        [OperationContract]
        void Posting(IEnumerable<SalesReturnDTO> SalesReturnDtos);

        [OperationContract]
        void UnPosting(IEnumerable<SalesReturnDTO> SalesReturnDtos);

        [OperationContract]
        IEnumerable<SalesReturnDTO> GetListByPeriode(DateTime tglstart, DateTime tglend);
    }
}